package day08;

import java.util.TreeSet;

public class DemoCode1 {
    public static void main(String[] args) {
TreeSet<Student> ts=new TreeSet<>();
Student stu1=new Student("张三",21);
Student stu2=new Student("李四",21);
Student stu3=new Student("王五",22);
Student stu4=new Student("刘备",18);
Student stu5=new Student("大蛇",16);
ts.add(stu1);
ts.add(stu2);
ts.add(stu3);
ts.add(stu4);
ts.add(stu5);
        System.out.println(ts);
    }
}
